package com.schoolcloud.front.config;

import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@EnableRabbit
public class RabbitMQConfig {
    public static final String FRONT_NOTIFICATION_EXCHANGE = "notification.exchange";
    public static final String FRONT_NOTIFICATION_PUSH_QUEUE = "notification.push.queue";
    public static final String FRONT_NOTIFICATION_STORE_QUEUE = "notification.store.queue";

    @Bean
    public MessageConverter jsonMessageConverter() {
        return new Jackson2JsonMessageConverter();
    }
}
